package com.example.safeassistan.home.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.safeassistan.R;
import com.example.safeassistan.home.model.CheckCommentPerson;

import java.util.List;

public class CheckLogCommentFragmentCAdapter extends BaseQuickAdapter<CheckCommentPerson.ResultDTO,BaseViewHolder> {
    public CheckLogCommentFragmentCAdapter(@Nullable List<CheckCommentPerson.ResultDTO> data) {
        super(R.layout.item_checklogcommentc_fragment, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, CheckCommentPerson.ResultDTO item) {

        helper.setText(R.id.tvCreateTime,item.getCreateTime()==null?"":item.getCreateTime());
        helper.setText(R.id.tvUserName,item.getUserName());
        helper.setText(R.id.tvStatus,"精神状态评分："+item.getSpiritStatus()+"分｜身体素质评分："+item.getBodyStatus()+"分");
    }
}
